import request from '@/utils/request'

// reqLogin
// reqGetUserInfo

// apiLogin

// baseURL = 'http://localhost:8888/api'

/**
 * 请求登录
 */
export const reqLogin = (obj) => {
  return request({
    method: 'post',
    url: '/sys/login',
    data: obj
  })
}

/**
 * 获取用户基本资料
 */
export const reqGetProfile = () => {
  return request({
    method: 'post',
    url: '/sys/profile'
  })
}

/**
 * 获取用户基本信息(包含头像)
 */
export const reqGetBaseInfo = (id) => {
  return request({
    method: 'get',
    url: `/sys/user/${id}`
  })
}

/**
 * 获取员工简单列表
 */
export const reqGetSimpleUserList = () => {
  return request({
    method: 'get',
    url: '/sys/user/simple'
  })
}
